<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class ParkData
 * @package App\Models
 * @version January 4, 2018, 2:39 am UTC
 *
 * @property string vpl_number
 * @property int pay_type
 * @property int type
 * @property string vpl_owner
 * @property string park_name
 * @property int in_time
 * @property int out_time
 * @property int park_duration
 * @property int user_id
 * @property string username
 */
class ParkData extends Model
{
    use SoftDeletes;

    public $table = 'park_datas';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'vpl_number',
        'pay_type',
        'type',
        'money',
        'park_code',
        'vpl_owner',
        'park_name',
        'in_time',
        'out_time',
        'park_duration',
        'note',
        'user_id',
        'username'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'vpl_number' => 'string',
        'vpl_owner' => 'string',
        'park_name' => 'string',
        'username' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'vpl_number' => 'required',
        'pay_type' => 'reuqired',
        'type' => 'required',
    ];

    
}
